import React from 'react';
import BaseQueryBooks from "./BaseQueryBooks";
import queryString from 'query-string'
import {BASE_URL} from "../constants";

export default function SearchBooks(props) {
    const value = queryString.parse(props.location.search);
    const keyword = value.keyword
    const url = `${BASE_URL}/search/?keyword=${keyword}`
    return <BaseQueryBooks url={url} {...props} />
};
